const {
  override, addWebpackAlias, addBabelPlugins, fixBabelImports,
} = require('customize-cra');
const path = require('path');

module.exports = override(
  fixBabelImports('import', {
    libraryName: 'antd-mobile',
    style: 'css',
  }),
  addBabelPlugins([
    'babel-plugin-styled-components']),
  // 默认路径设置
  addWebpackAlias({
    '@': path.resolve(__dirname, './src'),
  }),
);
